<?php
/**
 * Created by PhpStorm.
 * User: jacob
 * Date: 18-8-3
 * Time: 下午3:16
 */
namespace DB;

use MongoDB\Driver\Cursor;
use MongoDB\Driver\Query;

class MongodbDefault extends Mongodb {
  const username = \Config\Mongodb::Mongodb_username;
  const password = \Config\Mongodb::Mongodb_password;
  const dbname = \Config\Mongodb::Mongodb_dbname;
  const host = \Config\Mongodb::Mongodb_host;
  const port = \Config\Mongodb::Mongodb_port;

//  public function __construct(string $colname) {
//    parent::__construct(self::dbname,$colname,self::username,
//      self::password,self::host,self::port);
//  }
//
//  public function getMany(array $filter=[],array $options=[]):Cursor{
//    $manager = $this->getManager();
//    return $manager->executeQuery($this->getNamespace(),new Query($filter,$options));
//  }

}